// 获取 树 结构数据
export const getTreeData = () => {
    return [{
        id: '1', label: 'label1', children: [{ id: '1-1', label: 'label1-1' },
        {
            id: '1-2', label: 'label1-2', children: [{ id: '1-2-1', label: 'label1-2-1' },
            { id: '1-2-1', label: 'label1-2-1' },]
        },
        { id: '1-3', label: 'label1-3' }]
    },
    { id: '2', label: 'label2', children: Array.from({ length: 3 }, () => ({ id: Math.random().toString(36).substr(2, 9), label: 'label2-1' })) },
    { id: '3', label: 'label3', children: Array.from({ length: 3 }, () => ({ id: Math.random().toString(36).substr(2, 9), label: 'label3-1' })) }
    ]
}

export const getTreeComments = () => {
    return [{
        id: '1',
        label: 'label1',
        time: '2022-01-01',
        children: [{
            id: '1-1',
            time: '2022-01-01',
            label: 'label1-1'
        },
        {
            time: '2022-01-01',
            id: '1-2', label: 'label1-2',
            time: '2022-01-01',
            children: [{
                id: '1-2-1',
                time: '2022-01-01',
                label: 'label1-2-1'
            }],
        }]
    }
    ]
}